package com.ywk.base.toolClass.system;

import java.util.Map;
import java.util.Properties;

/**
 * @Author zbh
 * @Date 2023/7/7
 */
public class SystemTest {
    public static void main(String[] args) {
        Properties properties = System.getProperties();
        for (Object key : properties.keySet()) {
            System.out.println(key+"-------"+properties.getProperty(String.valueOf(key)));
        }
        System.out.println("====================================================================");
        Map<String, String> env = System.getenv();
        for (String key : env.keySet()) {
            System.out.println(key+"-------"+env.get(key));
        }
    }
}
